package com.muyu.day3zy.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName SpecificationAttrInfo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 9:57
 */
public class SpecificationAttrInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 规格详情id */
    @Excel(name = "规格详情id", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private Double sellPrice;

    /** 促销价格 */
    @Excel(name = "促销价格")
    private Double promotionalPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Integer num;

    /** 库存预警值 */
    @Excel(name = "库存预警值")
    private Integer inventoryWarningValue;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer skuId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Double sellPrice) {
        this.sellPrice = sellPrice;
    }

    public Double getPromotionalPrice() {
        return promotionalPrice;
    }

    public void setPromotionalPrice(Double promotionalPrice) {
        this.promotionalPrice = promotionalPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getInventoryWarningValue() {
        return inventoryWarningValue;
    }

    public void setInventoryWarningValue(Integer inventoryWarningValue) {
        this.inventoryWarningValue = inventoryWarningValue;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sellPrice", getSellPrice())
                .append("promotionalPrice", getPromotionalPrice())
                .append("num", getNum())
                .append("inventoryWarningValue", getInventoryWarningValue())
                .append("skuId", getSkuId())
                .toString();
    }
}
